package com.tron.dobest.fastjson;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Data
public class JsonData {
    @JSONField(name = "别名")
    private String str;
    private Integer number;
    private Boolean aBoolean;
    @JSONField(ordinal = 0)
    private List<Inner> inners;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss",ordinal = 2)
    private Date date;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss",ordinal = 3)
    private LocalDateTime time;

    @Data
    static class Inner{
        private String istr;
    }
}
